/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bitoon.basketdudes.jpa;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "acumulado", schema = "rankings")
@NamedQueries({
//    @NamedQuery(name = "Acumulado.findByRangoPosicion",query = "select p from Acumulado p where p.posicion>=:min_pos and p.posicion<=:max_pos order by p.posicion desc"),
//    @NamedQuery(name = "Acumulado.findByPosicion",     query = "SELECT r FROM Acumulado r WHERE r.posicion = :posicion"),
    @NamedQuery(name = "Acumulado.findById",           query = "SELECT r FROM Acumulado r WHERE r.id = :id")
})
public class Acumulado implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id = 0;
    @Basic(optional = false)
    @Column(name = "s1")
    private int s1 = 0;
    @Basic(optional = false)
    @Column(name = "s2")
    private int s2 = 0;
    @Basic(optional = false)
    @Column(name = "s3")
    private int s3 = 0;
    @Basic(optional = false)
    @Column(name = "s4")
    private int s4 = 0;
    @Basic(optional = false)
    @Column(name = "s5")
    private int s5 = 0;
    @Basic(optional = false)
    @Column(name = "s6")
    private int s6 = 0;
    @Basic(optional = false)
    @Column(name = "s7")
    private int s7 = 0;

    public Acumulado() {
    }

    public Acumulado(Integer id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public int getS1() {
        return s1;
    }

    public void setS1(int valor) {
        this.s1 = valor;
    }

    public int getS2() {
        return s2;
    }

    public void setS2(int valor) {
        this.s2 = valor;
    }

    public int getS3() {
        return s3;
    }

    public void setS3(int valor) {
        this.s3 = valor;
    }

    public int getS4() {
        return s4;
    }

    public void setS4(int valor) {
        this.s4 = valor;
    }

    public int getS5() {
        return s5;
    }

    public void setS5(int valor) {
        this.s5 = valor;
    }

    public int getS6() {
        return s6;
    }

    public void setS6(int valor) {
        this.s6 = valor;
    }

    public int getS7() {
        return s7;
    }

    public void setS7(int valor) {
        this.s7 = valor;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Acumulado)) {
            return false;
        }
        Acumulado other = (Acumulado) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.bitoon.basketdudes.jpa.Acumulado[id=" + id + "]";
    }

}
